<?php Yii::app()->clientScript->scriptMap['jquery.js'] = false;
?>


<?php Util::tsRegisterAssetJs('_menus.js') ?>
<?php
$contadores = array(0, 21, 41, 61, 81, 101);
$contadoresFin = array(20, 40, 60, 80, 100);
$cont = 1;
$contMenus = 0;

$contador = 0;
?>

<?php foreach ($menus as $menu) : ?>
    <?php if (($contadores[$contMenus] / $cont) == 0 || ($contadores[$contMenus] / $cont) == 1): ?>

        <div class="metro-nav " style= "<?php echo $contMenus == 0 ? '' : '' ?>"  id="<?php echo $contMenus + 1 ?>" >
            <?php $contMenus++; ?>

        <?php endif; ?>
        <div class="metro-nav-block nav-block-grey">
            <a href="<?php echo $menu->id ?>" data-original-title="" class="menus">
                <i class="imagenSeccion"><?php echo CHtml::image(Yii::app()->baseUrl . "/uploads/images/$menu->imagen") ?></i>
                <div class="info"></div>

            </a>
            <div class="status"><?php echo $menu->nombre ?></div>
        </div>

        <?php if (($contadoresFin[$contMenus - 1] / $cont) == 1): ?>
        </div>


    <?php endif; ?>
    <?php $cont++; ?>
<?php endforeach; ?>

<script>
    var contMenus =<?php echo $contMenus ?>;
</script>






